3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">// In AIR, XTemplates must be created at load time
\r
10 categoryCombo: new Ext.XTemplate(
\r
11 '<tpl for="."><div class="x-combo-list-item">{listName}</div></tpl>'
\r
13 timeField: new Ext.XTemplate(
\r
14 '<tpl for="."><div class="x-combo-list-item">{text}</div></tpl>'
\r
17 gridHeader : new Ext.Template(
\r
18 '<table border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',
\r
19 '<thead><tr class="x-grid3-hd-row">{cells}</tr></thead>',
\r
20 '<tbody><tr class="new-task-row">',
\r
21 '<td><div id="new-task-icon"></div></td>',
\r
22 '<td><div class="x-small-editor" id="new-task-title"></div></td>',
\r
23 '<td><div class="x-small-editor" id="new-task-cat"></div></td>',
\r
24 '<td><div class="x-small-editor" id="new-task-due"></div></td>',
\r